package com.jerome.fs.sync;

import java.io.Serializable;

/**
 * Represents synchronized data.
 *
 * @author Jerome
 * @date 2023/9/12
 */
public class SyncVo implements Serializable {
    public SyncVo(Object content, int latestTime, String method) {
        this.content = content;
        this.latestTime = latestTime;
        this.method = method;
    }

    /**
     * Cached data.
     */
    private Object content;

    /**
     * Lamport clock value when the data was cached.
     */
    private int latestTime;

    /**
     * Synchronization method.
     * @see com.jerome.fs.http.HttpMethodEnum
     */
    private String method;

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public int getLatestTime() {
        return latestTime;
    }

    public void setLatestTime(int latestTime) {
        this.latestTime = latestTime;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
}
